;MiscLib Include File

 INCLUDE "libraries.inc"
 UseLibrary Misc



 CreateRoutine Misc,Delay,0,1
 CreateRoutine Misc,IfKey,1,0
 CreateRoutine Misc,WaitKey,0,0
 CreateRoutine Misc,PauseForKey,1,0
 CreateRoutine Misc,IfNKey,1,0
 CreateRoutine Misc,IfAnyKey,0,0


 EXTERN _LoadWaitTIOSKey
 EXTERN _LoadKey
 EXTERN _LoadWaitKey

LoadWaitTIOSKey MACRO first
       db     MiscLib,_LoadWaitTIOSKey
       dw     first
       if     first<VarA
       error  "syntax: LoadWaitTIOSKey Variable"
       error  "LoadWaitTIOSKey argument must be variable"
       endif
 ENDMAC

LoadWaitKey MACRO first
       db     MiscLib,_LoadWaitKey
       dw     first
       if     first<VarA
       error  "syntax: LoadWaitKey Variable"
       error  "LoadWaitKey argument must be variable"
       endif
 ENDMAC

LoadKey MACRO first
       db     MiscLib,_LoadKey
       dw     first
       if     first<VarA
       error  "syntax: LoadKey Variable"
       error  "LoadKey argument must be variable"
       endif
 ENDMAC
